

package model

import "go.mongodb.org/mongo-driver/bson/primitive"

// Config is mongodb config collection model.
type SystemConfig struct {
	ID                  primitive.ObjectID	`json:"id" bson:"ID"`
	Initialized         bool	`json:"initialized" bson:"Initialized"`
	DefaultRegisterRole string	`json:"defaultRegisterRole" bson:"DefaultRegisterRole"`

	BaseModel `json:",inline" bson:",inline"`
}

func (s *SystemConfig) SetId(id primitive.ObjectID) {
	s.ID = id
}

func (s *SystemConfig) GetId() string {
	return s.ID.Hex()
}

